package ${package}.service;

import ${systemPackage}.service.Service;
import ${package}.model.entity.User;

/**
 * ${moduleName}Service public interface.
 */
public interface ${moduleName}Service extends Service {
    /**
     * Persists User entity.
     *
     * @param username user name
     * @param password user password
     * @param authority user's authority
     * @return persisted user entity
     */
    User saveUser(String username, String password, String authority);

    /**
     * Checks if supplied username isn't already taken.
     *
     * @param username user name
     * @return true if username is available, false otherwise
     */
    boolean isUsernameAvailable(String username);
}
